#include "TestCheckValidFormPIN.h"
#include "CardBussiness.h"

CPPUNIT_TEST_SUITE_REGISTRATION(TestCheckValidFormPIN);

TestCheckValidFormPIN::TestCheckValidFormPIN(void)
{
}

TestCheckValidFormPIN::~TestCheckValidFormPIN(void)
{
}

void TestCheckValidFormPIN::TestCheckValidFormPIN_InputValid_ReturnTrue()
{
    char sPINInput[] = "123456";
    CCardBussiness objCardB;
    bool bActualResult = objCardB.CheckValidFormPIN(sPINInput);
    bool bExpectedResult = true;
    CPPUNIT_ASSERT(bActualResult == bExpectedResult);
}

void TestCheckValidFormPIN::TestCheckValidFormPIN_InputNULL_ReturnFalse()
{
    char sPINInput[] = "";
    CCardBussiness objCardB;
    bool bActualResult = objCardB.CheckValidFormPIN(sPINInput);
    bool bExpectedResult = false;
    CPPUNIT_ASSERT(bActualResult == bExpectedResult);
}

void TestCheckValidFormPIN::TestCheckValidFormPIN_InputLength_Different_6_ReturnFalse()
{
    char sPINInput[] = "12345";
    CCardBussiness objCardB;
    bool bActualResult = objCardB.CheckValidFormPIN(sPINInput);
    bool bExpectedResult = false;
    CPPUNIT_ASSERT(bActualResult == bExpectedResult);
}